This command will return the sprite priority of a specified sprite.
Return Integer=SPRITE PRIORITY(Sprite Number)
Sprite Number
Integer The sprite number
The value of the priority
ink rgb(255,0,0),0 box 0,0,32,32 get image 1,0,0,32,32,0 sprite 1,116,116,1 SET SPRITE PRIORITY 1,1 ink rgb(0,255,0),0 box 0,0,32,32 get image 2,0,0,32,32,0 sprite 2,100,100,2 SET SPRITE PRIORITY 2,0 do print "Sprites 1 Priority ",SPRITE PRIORITY(1) print "Sprites 2 Priority ",SPRITE PRIORITY(2) loop end
SPRITE Commands Menu Index